import { createWebHashHistory, createRouter } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/index",
    children: [
      {
        path: "index",
        component: () => import("/@/views/index.vue"),
      },
      {
        path: "crane",
        component: () => import("/@/views/crane.vue"),
      },
    ],
  },
];

export const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
